/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package library;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;


public class Configuration {
    private Properties prop;

    public Configuration(String filename) {
        this.prop = new Properties();
        try{
            prop.load(new FileInputStream(filename.replaceAll("%20", " ")));
        }
        catch(IOException io){
            Debug.Log(io);
            Utils.Alert(io.getMessage());
            System.exit(0);
        }
    }

    public String get(String key){
        return this.prop.getProperty(key);
    }
}
